package com.hjh.qinxin;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        initView();
    }
    private void initView(){
       new Thread(){
           @Override
           public void run() {
               super.run();
               try {
                   sleep(2000);
                   Intent intent = new Intent(MainActivity.this,HomeActivity.class);
                   startActivity(intent);
               } catch (InterruptedException e) {
                   e.printStackTrace();
               }
           }
       }.start();

    }
}